package com.qf;

import java.util.function.Consumer;

public class ConsumerTest {
    public static void main(String[] args) {

//        Consumer<Integer> consumer = i -> System.out.println(i);
        Consumer<Integer> consumer = System.out::println;

        consumer.accept(100);
    }
}
